package com.asdf.db.operations.stat;

import java.util.List;

import com.asdf.external.DBUsageDetails;

/** OPperation for getting statistics about the user usage.
 * @author so4i2014
 *
 */
public class StatByUser extends StatOp {

	/** Create new operation.
	 * @param source -  A list we gonna search in
	 */
	public StatByUser(List<DBUsageDetails> source) {
		super(source);
	}

	/* (non-Javadoc)
	 * @see com.asdf.db.operations.stat.StatOp#getId(com.asdf.external.DBUsageDetails)
	 */
	@Override
	protected String getId(DBUsageDetails usage) {
		return usage.getUserId();
	}

}
